home *** CD-ROM | disk | FTP | other *** search
/ Crosscountry USA Photo Safari / Crosscountry USA Photo Safari.iso / Data / cc_base / pak00_16bit_f.pk3 / loader.gl.p < prev    next >
Text File  |  2002-12-23  |  6KB  |  184 lines

  1. {
  2.  
  3.   ChildID = {
  4.     GuiLoader("background") {
  5.       /* AnimationID = "image/loader.pcx"; */
  6.       X = 0;
  7.       Y = 0;
  8.       state = 1;
  9.       ScriptID = Script {
  10.         @draw {
  11.           DrawRect(0,0,CVarGetInt("SCREEN_MAX_X"), CVarGetInt("SCREEN_MAX_Y"), 0, 0, 0);
  12.         }
  13.         @animate {
  14.           int state;
  15.           int CurrentFrame;
  16.           resid LoadAnim;
  17.  
  18.           LoadAnim = GuiSiblingByName("load_anim");
  19.           ResPropAlias(SELF,"state","state");
  20.           ResPropAlias(LoadAnim,"CurrentFrame","CurrentFrame");
  21.           
  22.           if (state == 1) {
  23.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(137/*"loading dispatch"*/));
  24.             state += 1;
  25.             CurrentFrame += 1;
  26.             stop;
  27.           }
  28.           if (state == 2) {
  29.             ResByName("dispatch.gl");
  30.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(138/*"loading map"*/));
  31.             state += 1;
  32.             CurrentFrame += 1;
  33.             stop;
  34.           }
  35.           if (state == 3) {
  36.             ResByName("map.gl");
  37.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(139/*"loading country map"*/));
  38.             state += 1;
  39.             CurrentFrame += 1;
  40.             stop;
  41.           }
  42.           if (state == 4) {
  43.             ResByName("country_map.gl");
  44.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(140/*"loading expense report"*/));
  45.             state += 1;
  46.             CurrentFrame += 1;
  47.             stop;
  48.           }
  49.           if (state == 5) {
  50.             ResByName("expense.gl");
  51.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(141/*"loading photo album"*/));
  52.             state += 1;
  53.             CurrentFrame += 1;
  54.             stop;
  55.           }
  56.           if (state == 6) {
  57.             ResByName("photo_album.gl");
  58.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(142/*"loading travel log"*/));
  59.             state += 1;
  60.             CurrentFrame += 1;
  61.             stop;
  62.           }
  63.           if (state == 7) {
  64.             ResByName("travel_log.gl");
  65.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(143/*"loading truck dash"*/));
  66.             state += 1;
  67.             CurrentFrame += 1;
  68.             stop;
  69.           }
  70.           if (state == 8) {
  71.             ResByName("help.gl");
  72.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(144/*"loading tab: hunger"*/));
  73.             state += 1;
  74.             CurrentFrame += 1;
  75.             stop;
  76.           }
  77.           if (state == 9) {
  78.             ResByName("eat.tab");
  79.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(145/*"loading tab: fuel"*/));
  80.             state += 1;
  81.             CurrentFrame += 1;
  82.             stop;
  83.           }
  84.           if (state == 10) {
  85.             ResByName("fuel.tab");
  86.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(146/*"loading tab: load"*/));
  87.             state += 1;
  88.             CurrentFrame += 1;
  89.             stop;
  90.           }
  91.           if (state == 11) {
  92.             ResByName("load.tab");
  93.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(147/*"loading tab: maintenance"*/));
  94.             state += 1;
  95.             CurrentFrame += 1;
  96.             stop;
  97.           }
  98.           if (state == 12) {
  99.             ResByName("maintenance.tab");
  100.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(148/*"loading tab: postcards"*/));
  101.             state += 1;
  102.             CurrentFrame += 1;
  103.             stop;
  104.           }
  105.           if (state == 13) {
  106.             ResByName("postcard.tab");
  107.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(149/*"loading tab: system"*/));
  108.             state += 1;
  109.             CurrentFrame += 1;
  110.             stop;
  111.           }
  112.           if (state == 14) {
  113.             ResByName("system.tab");
  114.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(150/*"loading tab: timezone"*/));
  115.             state += 1;
  116.             CurrentFrame += 1;
  117.             stop;
  118.           }
  119.           if (state == 15) {
  120.             ResByName("timezone.tab");
  121.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(151/*"loading tab: sleep"*/));
  122.             state += 1;
  123.             CurrentFrame += 1;
  124.             stop;
  125.           }
  126.           if (state == 16) {
  127.             ResByName("sleep.tab");
  128.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(152/*"loading laptop"*/));
  129.             state += 1;
  130.             CurrentFrame += 1;
  131.             stop;
  132.           }
  133.           if (state == 17) {
  134.             ResByName("dash.gl");
  135.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(153/*"loading help sections"*/));
  136.             state += 1;
  137.             CurrentFrame += 1;
  138.             stop;
  139.           }
  140.           if (state == 18) {
  141.             ResByName("laptop.gl"); 
  142.             ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(154/*"loading complete!"*/));
  143.             state += 1;
  144.             CurrentFrame += 1;
  145.             stop;
  146.           }
  147.           if (state == 19) {        
  148.             ResPropSetInt(GuiParent(SELF),"Hidden",TRUE);           
  149.            stop;
  150.           }
  151.                    
  152.         }
  153.       };
  154.     },
  155.     GuiAnimation("load_anim") {
  156.       AnimationID = "gui/main_menu/loader/loader.anm";
  157.       X = 150;
  158.       Y = 150;
  159.       State = STOPPED;
  160.     },
  161.       GuiTextInput("load_header") {
  162.       X = 320;
  163.       Y = 250;
  164.       Width = 185;
  165.       Height = 120;
  166.       WordWrap = TRUE;
  167.       InputDisabled = TRUE;
  168.       InputText = Mangle(321/*"Loading"*/);
  169.       FontID = "font/verdana_white_bold_18.tf";
  170.     },
  171.       GuiTextInput("load_status") {
  172.       X = 350;
  173.       Y = 280;
  174.       Width = 185;
  175.       Height = 120;
  176.       WordWrap = TRUE;
  177.       InputDisabled = TRUE;
  178.       FontID = "font/tab_w_on_g.tf";
  179.      }
  180.  
  181.  
  182.   };
  183. }
  184.